package com.lie.prepare.multi_thread.queue;

/**
 * Created by lie on 2018/4/9.
 */
public class Toast {
    public enum Status{DRY, BUTTERED, JAMMED}

    private Status status = Status.DRY;

    public Status getStatus() {
        return status;
    }

    public int getId() {
        return id;
    }

    private final int id;

    public Toast(int id) {
        this.id = id;
    }


    public void butter(){
        status = Status.BUTTERED;
    }

    public void jam(){
        status = Status.JAMMED;
    }

    @Override
    public String toString() {
        return "Toast{" +
                "status=" + status +
                ", id=" + id +
                '}';
    }
}
